import request from '@/utils/request'
// 查询分页损耗模型配置信息
export const gettablelistapi = params => request.get('ecm-microservice-biz/ecm/energy/attrition/model/set/page', { params })
// 所属关系选择
export const getguanxiapi = params => request.get('ecm-microservice-biz/ecm/energy/attrition/model/set/select', { params })
// 新增
export const postaddmodelapi = data => request.post('ecm-microservice-biz/ecm/energy/attrition/model/set/add', data)
// 删除
export const postdelmodelapi = data => request.post(`ecm-microservice-biz/ecm/energy/attrition/model/set/delete?id=${data.id}`)
// 修改
export const postupdatemodelapi = data => request.post('ecm-microservice-biz/ecm/energy/attrition/model/set/update', data)
// 能耗分析-列表分页
export const getfengxilistapi=params=>request.get('ecm-microservice-biz/ecm/energy/attrition/analysis/data/analyse/page',{params})